import Vue from "vue";
import Router from "vue-router";
import loginz from "../pages/loginz.vue";
import index from "../pages/index.vue";
import information from "../pages/information.vue";
import stock from "../pages/stock.vue";
import doctor from "../pages/doctor.vue";
import department from "../pages/department.vue";
import admin from "../pages/admin.vue";
import personal from "../pages/personal.vue";

import user from "../pages/user";
Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      component: loginz,
      meta: {
        showNav: false
      }
    },
    {
      path: "/loginz",
      name: "loginz",
      component: loginz,
      meta: {
        showNav: true
      }
    },

    {
      path: "/index",
      name: "index",
      component: index,
      meta: {
        showNav: true
      }
    },

    {
      path: "/information",
      name: "information",
      component: information,
      meta: {
        showNav: true
      }
    },

    {
      path: "/stock",
      name: "stock",
      component: stock,
      meta: {
        showNav: true
      }
    },

    {
      path: "/doctor",
      name: "doctor",
      component: doctor,
      meta: {
        showNav: true
      }
    },

    {
      path: "/department",
      name: "department",
      component: department,
      meta: {
        showNav: true
      }
    },

    {
      path: "/admin",
      name: "admin",
      component: admin,
      meta: {
        showNav: true
      }
    },

    {
      path: "/personal",
      name: "personal",
      component: personal,
      meta: {
        showNav: true
      }
    },

    {
      path: "/user",
      name: "user",
      component: user,
      meta: {
        showNav: true
      }
    }
  ]
});
